import request from '@/utils/request';

export function UserList(query) {
	return request({
		url: '/expense/main/selectUserList',
		method: 'get',
		params: query,
	});
}
// 应付单列表
export function Save(query) {
	return request({
		url: '/expense/main/insertForm',
		method: 'post',
		data: query,
	});
}

// 编辑
export function Edit(query) {
	return request({
		url: '/expense/main',
		method: 'PUT',
		data: query,
	});
}

export function BusinessType(query) {
	return request({
		url: '/expense/main/getBusinessType',
		method: 'get',
		params: query,
	});
}

export function Details(id) {
	return request({
		url: '/expense/main/' + id,
		method: 'get',
	});
}

export const ExportFile = '/expense/main/moreSheetExport';
export const ImportFile = '/expense/info/import';
export function SupplierDetails(supplierId) {
	return request({
		url: `/supplier/supplier/${supplierId}`,
		method: 'get',
	});
}
